package com.experiment06;

import java.util.Scanner;

public class Exp61 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        try {
            int n = scanner.nextInt();
            System.out.println(10-n);
        } catch (Exception e) {
            System.out.println("not int");
        }
        System.out.println("end");
    }
}
